//
//  UIPlaceHolderTextView.h
//  TCLVBIM
//
//  Created by annidyfeng on 16/8/3.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <Foundation/Foundation.h>
IB_DESIGNABLE
@interface UIPlaceHolderTextView : UITextView

@property (nonatomic, retain) IBInspectable NSString *placeholder;
@property (nonatomic, retain) IBInspectable UIColor *placeholderColor;

@property (nonatomic, strong) NSString *placeHolder;

-(void)textChanged:(NSNotification*)notification;

@end



@interface UILimitTextView : UIPlaceHolderTextView
{
@protected
    UILabel         *_limitText;
}

@property (nonatomic, readonly) UILabel *limitText; // 设置limitLength>0后有效

@property (nonatomic, assign) NSInteger limitLength;

- (BOOL)shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
- (void)updateLimitText;
@end

